package com.jlnk.glidedemo.views;

import android.os.Bundle;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;
import com.bumptech.glide.Glide;
import com.jlnk.glidedemo.R;

public class ImageDetailActivity extends AppCompatActivity {
    private String imageUrl;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_image_detail);

        imageUrl = getIntent().getStringExtra("imageUrl");
        Glide.with(this).load(imageUrl).into((ImageView) findViewById(R.id.image_view));
    }
}
